﻿using Microsoft.AspNetCore.Mvc;

namespace MvcMove.Controllers
{
    public class HelloController : Controller
    {
        public IActionResult Index()
        {
            ViewData["Name"] = "小明";
            return View();
        }
        /*public String Index()
        {
            return "这是Index首页方法…";
        }*/
        public IActionResult Welcome()
        {
            return Content("<h3>这是Welcome方法…</h3>", "text/html; charset=utf-8");
        }
    }
}
